<?php
$HTMLstr .= '<div class="body">
    <div class="findOne">
    <div class="findOneInside">';
$HTMLstr .= '<p>Выбор аватара</p>
    <form action="?controller=user&action=saveAvatar" method="post">';

if (!empty($this->message)) {
    $HTMLstr .= '<div class="head">
        '.$this->message.'
            </div>';
}

foreach($this->allImgs as $oneImg){
    $HTMLstr .= '<div class="fetchallOne" id="img">
        
        <input type="radio" name="avatar" value="'. $oneImg->getId() .'">
            <div class="fetchallOneInsideBigImg">
            <img height="100%" src="stuff/images/saved/'. $oneImg->getName() .'.jpg">
                </div>
                </div>';
}
$HTMLstr .= '<div class="fetchallOne" id="frame">
    <input type="submit" value="Выбрать">
    </div>
    </form>
    </div>
        </div>
        </div>';